package routers

import (
	"GoIM/controllers"
	"github.com/astaxie/beego"
)

func init() {
	// 首页
	beego.Router("/", &controllers.IndexController{})

	//用户登陆注册
	beego.Router("/login", &controllers.UserController{}, "*:Login")
	beego.Router("/register", &controllers.UserController{}, "*:Register")

	//api请求接口
	beego.Router("/api/panel/msg", &controllers.ApiController{}, "get:PanelMsg")
	beego.Router("/api/info/sign/modify", &controllers.ApiController{}, "get:ModifySign")

	//ws
	beego.Router("/ws",&controllers.WebSocketController{},"get:WebSocketResponse")
}
